package com.jd.config;

public class TenantContext {
 
    private static ThreadLocal<String> currentTenant = new ThreadLocal<>();
 
    public static void setTenant(String tenant) {
//        log.debug(" setting tenant to " + tenant);
        currentTenant.set(tenant);
    }
 
    public static String getTenant() {
        return currentTenant.get();
    }
 
    public static void clear(){
        currentTenant.remove();
    }
}
